package com.mawendaxiong.blogprovider.blogMain.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mawendaxiong.blogprovider.blogMain.entity.BlogMain;
import com.mawendaxiong.blogprovider.blogMain.mapper.BlogMainMapper;
import com.mawendaxiong.blogprovider.blogMain.service.BlogMainService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author mawendaxiong
 * @since 2020-06-24
 */
@Service
public class BlogMainServiceImpl extends ServiceImpl<BlogMainMapper, BlogMain> implements BlogMainService {
    @Autowired
    private BlogMainMapper mapper;

    @Override
    public List<BlogMain> getBlogsByType(String typeKid) {
        return mapper.getBlogsByType(typeKid);
    }

    @Override
    public BlogMain getBlogDetail(String blogKid) {
        return mapper.getBlogDetail(blogKid);
    }
}
